package com.ruoyi.project.remake.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.remake.domain.test.Details;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 病例主表对象 t_case_main
 *
 * @author 孙山伟
 * @date 2020-12-14
 */
public class TCaseMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;
    /** 住院号 */
    @Excel(name = "住院号")
    private  String admissionNumber;

    /** 病历号 */
    @Excel(name = "病历号")
    private String cardNumber;

    /** 病人姓名 */
    @Excel(name = "病人姓名")
    private String patientsName;

    /** 病人姓名 */
    @Excel(name = "身份证ID")
    private String cardId;

    /** 病人姓名 */
    @Excel(name = "医保卡ID")
    private String medicalCardId;

    /** 性别 */
    private String patientsGender;

    /** 出院时间 */
    @Excel(name = "出院时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dischargeTime;

    /** 出院科室 */
    private String leaveDepartment;

    /** 入院科室 */
    private String beDepartment;

    /** 身份证号 */
    private String identityCard;

    /** 状态 0 待审核、1审核通过，2审核未通过 */
    private String status;

    /** 打印次数 */
    private Long printNumber;

    /** 来源，1来源于翻拍，2来源于医院接口 */
    private String source;

    /** 翻拍程序人员登录姓名 */
    @Excel(name = "翻拍程序人员登录姓名")
    private String remakeName;


    /** 翻拍程序人员登录姓名 */
    @Excel(name = "质检人员姓名")
    private String qualityName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qualityTime;

    private  Integer pagesize;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date  admissionTime;

    private  String sex;

    private Long  userId;

    private String userName;

    private  String height;

    private  String weight;

    private  Date birthday;

    private String pdfUrl;

    private String number;

    private Integer age;


    private String hospitalNumber;

    private String reviceName;

    private List<Details> detailsList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCardNumber(String cardNumber)
    {
        this.cardNumber = cardNumber;
    }

    public String getCardNumber()
    {
        return cardNumber;
    }
    public void setPatientsName(String patientsName)
    {
        this.patientsName = patientsName;
    }

    public String getPatientsName()
    {
        return patientsName;
    }
    public void setPatientsGender(String patientsGender)
    {
        this.patientsGender = patientsGender;
    }

    public String getPatientsGender()
    {
        return patientsGender;
    }
    public void setDischargeTime(Date dischargeTime)
    {
        this.dischargeTime = dischargeTime;
    }

    public Date getDischargeTime()
    {
        return dischargeTime;
    }
    public void setLeaveDepartment(String leaveDepartment)
    {
        this.leaveDepartment = leaveDepartment;
    }

    public String getLeaveDepartment()
    {
        return leaveDepartment;
    }
    public void setBeDepartment(String beDepartment)
    {
        this.beDepartment = beDepartment;
    }

    public String getBeDepartment()
    {
        return beDepartment;
    }
    public void setIdentityCard(String identityCard)
    {
        this.identityCard = identityCard;
    }

    public String getIdentityCard()
    {
        return identityCard;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPrintNumber(Long printNumber)
    {
        this.printNumber = printNumber;
    }

    public Long getPrintNumber()
    {
        return printNumber;
    }
    public void setSource(String source)
    {
        this.source = source;
    }

    public String getSource()
    {
        return source;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardNumber", getCardNumber())
            .append("patientsName", getPatientsName())
            .append("patientsGender", getPatientsGender())
            .append("dischargeTime", getDischargeTime())
            .append("leaveDepartment", getLeaveDepartment())
            .append("beDepartment", getBeDepartment())
            .append("identityCard", getIdentityCard())
            .append("status", getStatus())
            .append("printNumber", getPrintNumber())
            .append("source", getSource())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getRemakeName() {
        return remakeName;
    }

    public void setRemakeName(String remakeName) {
        this.remakeName = remakeName;
    }

    public String getQualityName() {
        return qualityName;
    }

    public void setQualityName(String qualityName) {
        this.qualityName = qualityName;
    }

    public Date getQualityTime() {
        return qualityTime;
    }

    public void setQualityTime(Date qualityTime) {
        this.qualityTime = qualityTime;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    public Date getAdmissionTime() {
        return admissionTime;
    }

    public void setAdmissionTime(Date admissionTime) {
        this.admissionTime = admissionTime;
    }

    public String getAdmissionNumber() {
        return admissionNumber;
    }

    public void setAdmissionNumber(String admissionNumber) {
        this.admissionNumber = admissionNumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getMedicalCardId() {
        return medicalCardId;
    }

    public void setMedicalCardId(String medicalCardId) {
        this.medicalCardId = medicalCardId;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weigh) {
        this.weight = weigh;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPdfUrl() {
        return pdfUrl;
    }

    public void setPdfUrl(String pdfUrl) {
        this.pdfUrl = pdfUrl;
    }

    public List<Details> getDetailsList() {
        return detailsList;
    }

    public void setDetailsList(List<Details> detailsList) {
        this.detailsList = detailsList;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getHospitalNumber() {
        return hospitalNumber;
    }

    public void setHospitalNumber(String hospitalNumber) {
        this.hospitalNumber = hospitalNumber;
    }

    public String getReviceName() {
        return reviceName;
    }

    public void setReviceName(String reviceName) {
        this.reviceName = reviceName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
